package com.xxwu.springgobang.mapper;

import com.xxwu.springgobang.model.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    //插入新用户
    Integer insert(User user);

    //根据名称查找用户
    User selectByName(String username);

    Integer updateWinner(int userId);

    Integer updateLoser(int userId);
}
